/**
 * Copyright &copy; 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.inventory.entity;

import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 备件Entity
 * @author johnKee
 * @version 2016-07-28
 */
public class ZlmtAccessoryStore extends DataEntity<ZlmtAccessoryStore> {
	
	private static final long serialVersionUID = 1L;
	private String accessoryName;		// 配件名
	private String accessoryCategory;		// 配件分类
	private String model;		// 配件型号
	private String brand;		// 品牌
	private String amount;		// 数量
	private String contact;		// 联系信息
	private Date purchaseDate;		// 购买时间
	private Date warrantyDate;		// 质保时间
	
	public ZlmtAccessoryStore() {
		super();
	}

	public ZlmtAccessoryStore(String id){
		super(id);
	}

	@Length(min=0, max=128, message="配件名长度必须介于 0 和 128 之间")
	public String getAccessoryName() {
		return accessoryName;
	}

	public void setAccessoryName(String accessoryName) {
		this.accessoryName = accessoryName;
	}
	
	@Length(min=0, max=64, message="配件分类长度必须介于 0 和 64 之间")
	public String getAccessoryCategory() {
		return accessoryCategory;
	}

	public void setAccessoryCategory(String accessoryCategory) {
		this.accessoryCategory = accessoryCategory;
	}
	
	@Length(min=0, max=128, message="配件型号长度必须介于 0 和 128 之间")
	public String getModel() {
		return model;
	}

	public void setModel(String model) {
		this.model = model;
	}
	
	@Length(min=0, max=128, message="品牌长度必须介于 0 和 128 之间")
	public String getBrand() {
		return brand;
	}

	public void setBrand(String brand) {
		this.brand = brand;
	}
	
	@Length(min=0, max=128, message="数量长度必须介于 0 和 128 之间")
	public String getAmount() {
		return amount;
	}

	public void setAmount(String amount) {
		this.amount = amount;
	}
	
	@Length(min=0, max=256, message="联系信息长度必须介于 0 和 256 之间")
	public String getContact() {
		return contact;
	}

	public void setContact(String contact) {
		this.contact = contact;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getPurchaseDate() {
		return purchaseDate;
	}

	public void setPurchaseDate(Date purchaseDate) {
		this.purchaseDate = purchaseDate;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getWarrantyDate() {
		return warrantyDate;
	}

	public void setWarrantyDate(Date warrantyDate) {
		this.warrantyDate = warrantyDate;
	}
	
}